﻿using ME860.DotNetty.Server.Core;
using Microsoft.Extensions.DependencyInjection;

namespace ME860.DotNetty.Server.CoreImpl
{
    public static class ServerDIExtension
    {
        /// <summary>
        /// 添加服务依赖注入
        /// </summary>
        /// <param name="services"></param>
        public static void AddServer(this IServiceCollection services)
        {
            services.AddTransient<IDotNettyServer, DotNettyServerImpl>();
        }
    }
}
